package cn.tedu.boot21.controller;

import cn.tedu.boot21.vo.Emp;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class ParamController {
    @RequestMapping("/p1")
    @ResponseBody
    public String p1(String name,int age){

        return "接收到了参数:"+name+":"+age;
    }

    @RequestMapping("/p2")
    @ResponseBody
    public String p2(Emp emp){
        return "接收到了参数:"+emp;
    }
}
